#include <iostream>
using namespace std;

class Parent{
    public:
        double width;
        double getheight(void){
            return height;
        }
        void setheight(double high){
            height=high;
        }
    protected:
        double length;
    private:
        double height;
};

class Kid:Parent{
    public:
        void setlength(double len){
            length=len;
        }
        double getlength(void){
            return length;
        }
};

int main(){
    Parent Bob;
    Kid John;
    Bob.width=1;
    John.setlength(2);
    Bob.setheight(3);
    cout<<John.getlength()<<endl;
    cout<<Bob.getheight()<<endl;
    cout<<Bob.width<<endl;
    return 0;
}
